package com.yq.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * @author zxn
 * @date 2020-09-02
 * @description 
 */
public class Users extends Model<Users> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String name;

    private String telephone;

    private String yixiang;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getYixiang() {
        return yixiang;
    }

    public void setYixiang(String yixiang) {
        this.yixiang = yixiang;
    }

    public static final String ID = "id";

    public static final String NAME = "name";

    public static final String TELEPHONE = "telephone";

    public static final String YIXIANG = "yixiang";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Users{" +
        "id=" + id +
        ", name=" + name +
        ", telephone=" + telephone +
        ", yixiang=" + yixiang +
        "}";
    }
}
